import request from '@/utils/request'

// 查询供应商流向(批发)列表
export function listPf(query) {
  return request({
    url: '/flow/pf/list',
    method: 'get',
    params: query
  })
}

// 查询供应商流向(批发)详细
export function getPf(id) {
  return request({
    url: '/flow/pf/' + id,
    method: 'get'
  })
}

// 新增供应商流向(批发)
export function addPf(data) {
  return request({
    url: '/flow/pf',
    method: 'post',
    data: data
  })
}

// 修改供应商流向(批发)
export function updatePf(data) {
  return request({
    url: '/flow/pf',
    method: 'put',
    data: data
  })
}

// 删除供应商流向(批发)
export function delPf(id) {
  return request({
    url: '/flow/pf/' + id,
    method: 'delete'
  })
}
